home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
CMPLTPAS
/
SHOWDIR.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-07-24
|
1KB
|
30 lines
{--------------------------------------------------------------}
{ ShowDir }
{ }
{ "GetDir" demonstration program }
{ }
{ by Jeff Duntemann }
{ Turbo Pascal V5.0 }
{ Last update 7/25/88 }
{ }
{ From: COMPLETE TURBO PASCAL 5.0 by Jeff Duntemann }
{ Scott, Foresman & Co., Inc. 1988 ISBN 0-673-38355-5 }
{--------------------------------------------------------------}
PROGRAM ShowDir;
VAR
I : Byte;
Error : Integer;
CurrentDirectory : String;
BEGIN
FOR I := 0 TO 4 DO
BEGIN
GetDir(I,CurrentDirectory);
IF I = 0 THEN Write('Logged drive: ')
ELSE Write('Drive ',Chr(64+I),': ');
Writeln(CurrentDirectory)
END
END.